def x(n):
    if n==0:
        return 1
    return n*x(n-1)
j=int(input())
print(x(j))